import Layout from "@/Layout/Index.vue";

export const constantRoutes = [
    {
        path: '/login',
        component: () => import('@/views/Login.vue'),
        hidden: true
    },

    {
        path: '/test',
        component: () => import('@/test/test.vue'),
        hidden: true
    },

    {
        path: '/register',
        component: () => import('@/views/Register.vue'),
        hidden: true
    },

    {
        path: '/',
        component: Layout,
        redirect: 'index',
        children: [
            {
                path: 'os/:path*',
                component: () => import('@/views/Window.vue'),
                name: 'os',
            },
            {
                path: 'index',
                component: () => import('@/views/Index.vue'),
                name: 'index',
            },
        ]
    },

    {
        path: '/user',
        component: Layout,
        hidden: true,
        redirect: 'noredirect',
        children: [
            {
                path: 'profile',
                component: () => import('@/views/user/index.vue'),
                name: 'Profile',
                // meta: {title: '个人中心', icon: 'user'}
            }
        ]
    }

]
